<?php
class Logger_Firebug{
    public static function log($message, $level = Zend_Log::INFO)
    {
        $configuration = Zend_Registry::get('config');
        if (!  ( $configuration->logger && $configuration->logger->firebug && $configuration->logger->firebug->enabled)  ) return ;

        $writer = new Zend_Log_Writer_Firebug();
        $writer = new Zend_Log($writer);
        $writer->log($message, $level);
    }
}